cmake_minimum_required(VERSION 3.12)

project(Interfaces)

# Source/Include files
include_directories(".")
include_directories("./Simulation")
include_directories("../kernel")
include_directories("../common")
file(GLOB SIM_SOURCE "Simulation/*.cpp")

#Static Library
add_library(interfaces STATIC ${SIM_SOURCE})
target_link_libraries(interfaces kernel)
target_link_libraries(interfaces common)

if(LOCAL_SIMULATION)
    add_subdirectory(Simulation/coppeliaSim-client)
    include_directories("Simulation/coppeliaSim-client")
    include_directories("Simulation/coppeliaSim-client/include")
    include_directories("Simulation/coppeliaSim-client/remoteApi")
    target_link_libraries(interfaces coppeliaSim_client)
endif(LOCAL_SIMULATION)

